<template>
  <div class="bottom-bar">
    <div class="left">
      <div class="kefu">
        <div class="icon"></div>
        <div>客服</div>
      </div>
      <div class="dianpu">
        <div class="icon"></div>
        <div>店铺</div>
      </div>
      <div class="collect">
        <div class="icon"></div>
        <div>收藏</div>
      </div>
    </div>
    <div class="right">
      <div class="join_cart" @click="addCart">加入购物车</div>
      <div class="buy">购买</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "DetailBottomBar",
  data() {
    return {};
  },
  methods:{
    addCart(){
      this.$emit('addCart')
    }
  }
};
</script>

<style scoped>
/* .bottom-bar {
    height: 49px;
    background-color: red;
    position: relative;
    bottom: 49px;
    z-index: 110000000000;
  } */
.bottom-bar {
  display: flex;
  justify-content: space-between;
}
.left,
.right {
  display: flex;
  flex: 1;
  align-items: center;
  text-align: center;
}
.left > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
}
.left > div .icon {
  margin-bottom: 5px;
}
.left .kefu .icon {
  width: 30px;
  height: 33px;
  background-image: url("~assets/img/detail/detail_bottom.png");
  background-repeat: no-repeat;
  background-position: 0px -70px;
  background-size: 30px 208px;
}
.left .dianpu .icon {
  width: 30px;
  height: 33px;
  background-image: url("~assets/img/detail/detail_bottom.png");
  background-repeat: no-repeat;
  background-position: 0px -134px;
  background-size: 30px 208px;
}
.left .collect .icon {
  width: 30px;
  height: 33px;
  background-image: url("~assets/img/detail/detail_bottom.png");
  background-repeat: no-repeat;
  background-position: 0px 4px;
  background-size: 30px 208px;
}
.right > div {
  flex: 1;
}
.right .join_cart {
  background-color: #ff0;
  height: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
}
.right .buy {
  background-color: var(--color-high-text);
  height: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  color: #fff;
}
</style>